import service from "@/service/http.interceptor";

/**
 * 获取文章分类
 */
export const getArticleCategoryList = (params) => {
	return service.request({
		method: 'get',
		url: 'shop/article/category/c/list',
		params,
		custom: {
			loading: true
		}
	})	
}

/**
 * 获取文章数据
 */
export const getArticleList = (params) => {
	return service.request({
		method: 'get',
		url: 'shop/article/c/getArticleList',
		params,
		custom: {
			loading: true
		}
	})	
}

/**
 * 获取文章详情
 */
export const getArticleDetail = (params) => {
	return service.request({
		method: 'get',
		url: `shop/article/c/getArticleDetail/${params.articleId}`,
		params,
		custom: {
			loading: true
		}
	})	
}

